package com.p2p.user.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.p2p.common.base.BaseServiceImpl;
import com.p2p.user.mapper.PermissionMapper;
import com.p2p.user.po.Permission;
import com.p2p.user.service.PermissionService;
import com.p2p.user.vo.PermissionVo;

/**
 * Created by Allen on 2017/5/12.
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<PermissionMapper, Permission> implements PermissionService {

	@Autowired
	private PermissionMapper permissionMapper;
	
	@Override
	public List<Long> selectAllIds() {
		return permissionMapper.selectAllIds();
	}


	@Override
	public List<Permission> selectPermissionByRoleId(Long roleId) {
		return permissionMapper.selectPermissionByRoleId(roleId);
	}


	@Override
	public List<PermissionVo> selectPermissionVo() {
		// TODO Auto-generated method stub
		return permissionMapper.selectPermissionVo();
	}
}
